package adv4;

public class MathExp {
	// erjinzhi
	// 16jinzhi
	// [\u4e00--\u9fa5]
	public static void main(String[] args) {
		byte b = (byte) 2405;
		int i = 0x16;// 16进制
		int i2 = 016;// 8进制
		int i3 = i - i2;
		System.out.println(i3);
		int hanziStart = 0x4e00;
		int hanziend = 0x9fa5;
		System.out.println(hanziStart);
		System.out.println(hanziend);
		String str = "王二麻子";
		char[] cr = str.toCharArray();
		for (char c : cr) {
			if (!(c >= hanziStart && c <= hanziend)) {
				System.out.println("出现了非汉字");
				return;
			}
		}
		System.out.println("全汉字，符合要求");
	}

}
